package com.ruoyi.task.domain;

import java.util.List;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 任务信息对象 task_info
 * 
 * @author ruoyi
 * @date 2024-03-24
 */
public class TaskInfo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 任务ID */
    private Integer taskId;

    /** 任务名称 */
    @Excel(name = "任务名称")
    private String taskName;

    /** 任务量 */
    @Excel(name = "任务量")
    private Integer taskVolume;

    /** 任务描述 */
    @Excel(name = "任务描述")
    private String taskDesc;

    /** 任务状态 */
    @Excel(name = "任务状态")
    private Integer taskStatus;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date creationTime;

    /** 任务详情信息 */
    private List<TaskDetail> taskDetailList;

    public void setTaskId(Integer taskId) 
    {
        this.taskId = taskId;
    }

    public Integer getTaskId() 
    {
        return taskId;
    }
    public void setTaskName(String taskName) 
    {
        this.taskName = taskName;
    }

    public String getTaskName() 
    {
        return taskName;
    }
    public void setTaskVolume(Integer taskVolume) 
    {
        this.taskVolume = taskVolume;
    }

    public Integer getTaskVolume() 
    {
        return taskVolume;
    }
    public void setTaskDesc(String taskDesc) 
    {
        this.taskDesc = taskDesc;
    }

    public String getTaskDesc() 
    {
        return taskDesc;
    }
    public void setTaskStatus(Integer taskStatus) 
    {
        this.taskStatus = taskStatus;
    }

    public Integer getTaskStatus() 
    {
        return taskStatus;
    }
    public void setCreationTime(Date creationTime) 
    {
        this.creationTime = creationTime;
    }

    public Date getCreationTime() 
    {
        return creationTime;
    }

    public List<TaskDetail> getTaskDetailList()
    {
        return taskDetailList;
    }

    public void setTaskDetailList(List<TaskDetail> taskDetailList)
    {
        this.taskDetailList = taskDetailList;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("taskId", getTaskId())
            .append("taskName", getTaskName())
            .append("taskVolume", getTaskVolume())
            .append("taskDesc", getTaskDesc())
            .append("taskStatus", getTaskStatus())
            .append("creationTime", getCreationTime())
            .append("taskDetailList", getTaskDetailList())
            .toString();
    }
}
